package com.sino.operation.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sino.operation.entity.AutoCheck;
import com.sino.operation.entity.SysCenter;
import com.sino.operation.mapper.AutoCheckMapper;
import com.sino.operation.service.AutoCheckService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 校验配置表 服务实现类
 * </p>
 *
 * @author admin
 * @since 2021-10-07
 */
@Service
public class AutoCheckServiceImpl extends ServiceImpl<AutoCheckMapper, AutoCheck> implements AutoCheckService {

    @Autowired
    private AutoCheckMapper autoCheckMapper;
    @Override
    public IPage<AutoCheck> selectList(Map<String, String> map) {
        QueryWrapper<AutoCheck> wrapper = new QueryWrapper<>();
        int current= Integer.parseInt(map.get("current"));
        int size= Integer.parseInt(map.get("size"));
        return   autoCheckMapper.selectPage(new Page<>(current, size), wrapper);
    }
}
